package amsStore;

import item.ShoppingCartItem;
import java.util.List;

public class Bill {
	private List<ShoppingCartItem> billItems;
	private float totalPurchaseAmount;
	
	public Bill(List<ShoppingCartItem> billItems)
	{
		this.billItems = billItems;
		for(ShoppingCartItem curBillItem : billItems)
		{
			totalPurchaseAmount += curBillItem.getSellPrice() * curBillItem.getQuantity();
		}
	}
	
	public List<ShoppingCartItem> getBillItems()
	{
		return this.billItems;
	}
	
	public float getTotalPurchaseAmount()
	{
		return this.totalPurchaseAmount;
	}
}
